export default function (data) {
    return {
        title: {
            text: '在校生性别比例',
            // subtext: '虚构数据',
            left: 'center',
            top: 30,
            textStyle: {
                color: '#bcdcff'
            }
        },
        legend: {
            bottom: 30,
            right: 30,
            textStyle: {
                color: '#bcdcff'
            }
        },
        tooltip: {
            trigger: 'item',
            formatter: '{a} <br/>{b} : {c} ({d}%)'
        },
        series: [{
            type: 'pie',
            radius: '65%',
            center: ['50%', '50%'],
            selectedMode: 'single',
            color:['rgb(255, 110, 118)','rgb(88, 217, 249)','rgb(253, 221, 96)'],
            itemStyle: {
                normal: {
                    label: {
                        textStyle: {
                            color: '#bcdcff',
                            fontSize: 18
                        }
                    },
                    labelLine: {
                        lineStyle: {
                            color: '#bcdcff',
                            fontSize: 18
                        }
                    }
                }
            },
            data,
            emphasis: {
                itemStyle: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }]
    };
}